#include "mylabel.h"
#include <QDebug>
#include <QEvent>
#include <QMouseEvent>
MyLabel::MyLabel(QWidget *parent) : QLabel(parent)
{

}


void MyLabel::mousePressEvent(QMouseEvent *event)
{
    qDebug() << "mousePressEvent";
}

bool MyLabel::event(QEvent *event)
{
    if(event->type() == QEvent::MouseButtonPress)
    {
        qDebug() << "event";
        return true;
    }
    return QWidget::event(event);
}
